package com.fhz.day005

import com.fhz.day005.test.SubSubject
import com.fhz.day005.test.UserObserver
import org.junit.Test

import org.junit.Assert.*

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {

        val userObserver1 = UserObserver()
        val userObserver2 = UserObserver()
        val userObserver3 = UserObserver()

        val subSubject = SubSubject()
        subSubject.attach(userObserver1)
        subSubject.attach(userObserver2)
        subSubject.attach(userObserver3)

        subSubject.notify("发送了一个文章")

    }
}
